﻿using UtilZ.Dotnet.Ex.Attributes;

namespace UtilZ.Dotnet.Ex.Communication.Base
{
    /// <summary>
    /// 断开连接模式
    /// </summary>
    public enum DisconnectMode
    {
        /// <summary>
        /// 未知,主动或被动断开
        /// </summary>
        [DisplayNameEx("未知", "未知,主动或被动断开")]
        None,

        /// <summary>
        /// 主动断开,代码根据需要控制断开
        /// </summary>
        [DisplayNameEx("主动断开", "代码根据需要控制断开")]
        Active,

        /// <summary>
        /// 被动断开,对方断开连接或网络不通等外部原因引起
        /// </summary>
        [DisplayNameEx("被动断开", "对方断开连接或网络不通等外部原因引起")]
        Passive
    }
}
